package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ProjectStatisticsMapper;
import com.ruoyi.system.domain.ProjectStatistics;
import com.ruoyi.system.service.IProjectStatisticsService;

/**
 * 项目统计Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-04-20
 */
@Service
public class ProjectStatisticsServiceImpl implements IProjectStatisticsService 
{
    @Autowired
    private ProjectStatisticsMapper projectStatisticsMapper;

    /**
     * 查询项目统计
     * 
     * @param id 项目统计主键
     * @return 项目统计
     */
    @Override
    public ProjectStatistics selectProjectStatisticsById(Long id)
    {
        return projectStatisticsMapper.selectProjectStatisticsById(id);
    }

    /**
     * 查询项目统计列表
     * 
     * @param projectStatistics 项目统计
     * @return 项目统计
     */
    @Override
    public List<ProjectStatistics> selectProjectStatisticsList(ProjectStatistics projectStatistics)
    {
        return projectStatisticsMapper.selectProjectStatisticsList(projectStatistics);
    }

    /**
     * 新增项目统计
     * 
     * @param projectStatistics 项目统计
     * @return 结果
     */
    @Override
    public int insertProjectStatistics(ProjectStatistics projectStatistics)
    {
        return projectStatisticsMapper.insertProjectStatistics(projectStatistics);
    }

    /**
     * 修改项目统计
     * 
     * @param projectStatistics 项目统计
     * @return 结果
     */
    @Override
    public int updateProjectStatistics(ProjectStatistics projectStatistics)
    {
        return projectStatisticsMapper.updateProjectStatistics(projectStatistics);
    }

    /**
     * 批量删除项目统计
     * 
     * @param ids 需要删除的项目统计主键
     * @return 结果
     */
    @Override
    public int deleteProjectStatisticsByIds(Long[] ids)
    {
        return projectStatisticsMapper.deleteProjectStatisticsByIds(ids);
    }

    /**
     * 删除项目统计信息
     * 
     * @param id 项目统计主键
     * @return 结果
     */
    @Override
    public int deleteProjectStatisticsById(Long id)
    {
        return projectStatisticsMapper.deleteProjectStatisticsById(id);
    }
}
